/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.service;

import java.util.Collection;
import java.util.List;

import com.xy.biz.rs.domain.bo.ManufactureRecordBO;
import com.xy.biz.rs.domain.req.GetManufactureArchiveRequest;
import com.xy.biz.rs.domain.req.ManufactureArchiveApplyCheckRequest;
import com.xy.biz.rs.domain.req.ManufactureArchiveQACheckRequest;
import com.xy.lang.domain.Result;
import com.xy.biz.rs.domain.bo.ManufactureArchiveBO;
import com.xy.biz.rs.domain.query.ManufactureArchiveQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-4-19
 */
public interface ManufactureArchiveService {

	/**
	 * 保存
	 *
	 * @param manufactureArchiveBO
	 */
	Result<?> saveManufactureArchive(ManufactureArchiveBO manufactureArchiveBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllManufactureArchive(Collection<ManufactureArchiveBO> collection);

	/**
	 * 更新
	 *
	 * @param manufactureArchiveBO
	 */
	Result<?> updateManufactureArchive(ManufactureArchiveBO manufactureArchiveBO);

	/**
	 * 删除
	 *
	 * @param manufactureArchiveId
	 */
	Result<?> deleteManufactureArchive(Long manufactureArchiveId);

	/**
	 * 查找一个
	 *
	 * @param manufactureArchiveId
	 * @return
	 */
	ManufactureArchiveBO getManufactureArchive(Long manufactureArchiveId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<ManufactureArchiveBO> listManufactureArchiveById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<ManufactureArchiveBO> listManufactureArchive(ManufactureArchiveQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countManufactureArchive(ManufactureArchiveQuery query);

    List<ManufactureRecordBO> detail(GetManufactureArchiveRequest request);

	Result<Object> applyCheck(ManufactureArchiveApplyCheckRequest request);

    Result<?> check(ManufactureArchiveQACheckRequest request);
}
